import {NavigationExtras, Router} from "@angular/router";
import {Component} from "@angular/core";

@Component({
  selector: 'login'
})
export class LoginComponent {
  constructor(private router: Router) {
    let redirect: string = ''

    let navigationExtras: NavigationExtras = {
      preserveQueryParams: true,
      preserveFragment: true
    }

    this.router.navigate([redirect], navigationExtras)
  }
}